package com.创建型模式.单例模式.猪八戒;

public class BaJieTest {
    public static void main(String[] args) {
        BaJie baJie = BaJie.getInstance();
        BaJie baJie1 = BaJie.getInstance();
        if (baJie == baJie1){
            System.out.println("真八戒");
        }else{
            System.out.println("假八戒");
        }
    }
}
